// pages/package/themeColor/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    selectShowThemeIndex: 0,
    selectTabIndex: 0,
    showTheme: [
      {
        title: "中国 (故宫)",
        subTitle: "Chinese",
        themeColor: "chinese-color"
      },
      {
        title: "美国 (推特)",
        subTitle: "American",
        themeColor: "american-color"
      },
      {
        title: "暗黑风格",
        subTitle: "Dark",
        themeColor: "dark-color"
      },
    ],
    tabBar: [
      {
        "text": "首页",
        "iconPath": "wap-home-o",
        "selectedIconPath": "wap-home"
      },
      {
        "text": "商店",
        "iconPath": "shop-o",
        "selectedIconPath": "shop"
      },
      {
        "text": "首页",
        "iconPath": "notes-o",
        "selectedIconPath": "notes"
      },
      {
        "text": "我的",
        "iconPath": "contact-o",
        "selectedIconPath": "contact"
      },
    ]
  },
  clickSelectTheme(e){
    let index = e.currentTarget.dataset.index
    this.setData({
      selectShowThemeIndex: index
    })
  },
  clickTabItem(e){
    let index = e.currentTarget.dataset.index
    this.setData({
      selectTabIndex: index
    })
  }
})